package com.pzl.hwr;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }


    public void click(View view) {
        Intent intent = new Intent();
        switch (view.getId()) {
            case R.id.btn_HWR1:
                intent.setClass(this, HWR1Activity.class);
                break;
            case R.id.btn_HWR2:
                intent.setClass(this, HWR2Activity.class);
                break;
        }
        startActivity(intent);
    }

}
